package com.tim.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 作者：Tim
 * 时间：2021/4/29 11:49
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
public class StallUse {

    private Integer id;
    private String carPlot;
    private String stallNum;
    private String carNum;
    private String image;
    private String carOwner;
    private String tel;
    private Integer useable;
    private Double price;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date startTime;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date endTime;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date creatorTime;
    @JsonIgnore
    private String file;

    public StallUse(Integer id, String carPlot, String stallNum, String carNum, String image, String carOwner, String tel, Integer useable, Double price, Date startTime, Date endTime, Date creatorTime) {
        this.id = id;
        this.carPlot = carPlot;
        this.stallNum = stallNum;
        this.carNum = carNum;
        this.image = image;
        this.carOwner = carOwner;
        this.tel = tel;
        this.useable = useable;
        this.price = price;
        this.startTime = startTime;
        this.endTime = endTime;
        this.creatorTime = creatorTime;
    }
}
